import logger from '../../core/logger';

export default class imgDataSource {
  constructor(comicId: number, comicName: string, imgSrc: Array<string>) {
    this.comicId = comicId;
    this.comicName = comicName;
    this.imgSrc = imgSrc;
  }

  comicId: number;
  comicName: string;
  imgSrc: Array<string>;

  toString() {
    let ret = '';
    try {
      ret = JSON.stringify(this);
    } catch (e) {
      logger.error(e);
    }
    return ret;
  }
}